server Error 500: howto examine what apache got

server Error 500: howto examine what apache got

am 15.03.2010 16:41:55 von Anton

Hi,

I get an error "Premature end of script headers:"

Now, I know that apache get some wrong code,
but I would like to get (to log in a file) this
data which apache gets.

Its a perl/cgi script which executes a php script and sends the result back.

How can I "sniff" what apache gets back from a cgi (or php script)??

I didn't find information about this in the wiki or in the documentation,
but other people get 500 errors too ... so there must be any possibilities
to examine such an error?

Anton



------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: server Error 500: howto examine what apache got

am 15.03.2010 16:56:16 von Charan

--00504502c80101df810481d8ed67
Content-Type: text/plain; charset=ISO-8859-1

I guess you can use live http headers addon from firefox.


Thanks,
Charan


On Mon, Mar 15, 2010 at 8:41 AM, anton wrote:

> Hi,
>
> I get an error "Premature end of script headers:"
>
> Now, I know that apache get some wrong code,
> but I would like to get (to log in a file) this
> data which apache gets.
>
> Its a perl/cgi script which executes a php script and sends the result
> back.
>
> How can I "sniff" what apache gets back from a cgi (or php script)??
>
> I didn't find information about this in the wiki or in the documentation,
> but other people get 500 errors too ... so there must be any possibilities
> to examine such an error?
>
> Anton
>
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--00504502c80101df810481d8ed67
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I guess you can use live http headers addon from firefox.


v>
Thanks,
Charan



On Mon, Mar 15, 2010 at 8:41 AM, anton <=
span dir=3D"ltr"><&g=
t; wrote:
.8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,



I get an error "Premature end of script headers:"



Now, I know that apache get some wrong code,

but I would like to get (to log in a file) this

data which apache gets.



Its a perl/cgi script which executes a php script and sends the result back=
..



How can I "sniff" what apache gets back from a cgi (or php script=
)??



I didn't find information about this in the wiki or in the documentatio=
n,

but other people get 500 errors too ... so there must be any possibilities<=
br>
to examine such an error?



Anton







------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

=A0 " =A0 from the digest: @httpd.apache.org">users-digest-unsubscribe@httpd.apache.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--00504502c80101df810481d8ed67--

Re: server Error 500: howto examine what apache got

am 15.03.2010 17:09:20 von Eric Covener

On Mon, Mar 15, 2010 at 11:41 AM, anton wrote:
> Hi,
>
> I get an error "Premature end of script headers:"
>
> Now, I know that apache get some wrong code,
> but I would like to get (to log in a file) this
> data which apache gets.
>
> Its a perl/cgi script which executes a php script and sends the result back.
>
> How can I "sniff" what apache gets back from a cgi (or php script)??
>
> I didn't find information about this in the wiki or in the documentation,
> but other people get 500 errors too ... so there must be any possibilities
> to examine such an error?

error log, http://httpd.apache.org/docs/2.1/mod/mod_cgi.html#scriptlog

--
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: server Error 500: howto examine what apache got

am 15.03.2010 17:10:26 von Anton

Hi Charan,

thanks (I will look at it) but I can see the headers
from and to firefox with firebug too.

But I don't thnik that this will help me:

I need to see what *apache* gets back from the cgi script!

Reason:
1. apache gets a bad header/ bad code where the header is not OK
2. apache generates a nice correct html output page with an error message
3. my firefox sees this webpage (but not the bad code, its too late here)

But again,

thanks for the fast response ;-)

Anton

Charan wrote:

> I guess you can use live http headers addon from firefox.
>
>
> Thanks,
> Charan
>
>
> On Mon, Mar 15, 2010 at 8:41 AM, anton wrote:
>
>> Hi,
>>
>> I get an error "Premature end of script headers:"
>>
>> Now, I know that apache get some wrong code,
>> but I would like to get (to log in a file) this
>> data which apache gets.
>>
>> Its a perl/cgi script which executes a php script and sends the result
>> back.
>>
>> How can I "sniff" what apache gets back from a cgi (or php script)??
>>
>> I didn't find information about this in the wiki or in the documentation,
>> but other people get 500 errors too ... so there must be any
>> possibilities to examine such an error?
>>
>> Anton
>>
>>
>>
>> ------------------------------------------------------------ ---------
>> The official User-To-User support forum of the Apache HTTP Server
>> Project. See for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>




------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org